package cn.com.nes.site.service.workOrder;

import cn.com.nes.mybatis.agent.ope.entity.WorkOrderRejectionInfo;
import cn.com.nes.site.service.workOrder.bo.GetWorkOrderRejectionInfoBO;
import cn.com.nes.site.service.workOrder.bo.InitRejectionInfoBO;
import cn.com.nes.site.service.workOrder.bo.WorkOrderRejectionInfoBO;
import cn.com.nes.site.service.workOrder.dto.WorkOrderRejectionInfoDTO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;
import java.util.Set;

/**
 * 工单拒单记录 Service
 *
 * @Author: ShenWei
 * @Date: 2024/09/04/9:36
 */
public interface WorkOrderRejectionInfoService extends IService<WorkOrderRejectionInfo> {

    /**
     * 新增工单拒单记录
     */
    void insertWorkOrderRejectionInfo(WorkOrderRejectionInfoBO bo);

    /**
     * 查询工单拒单记录
     */
    Page<WorkOrderRejectionInfoDTO> getWorkOrderRejectionInfoPage(GetWorkOrderRejectionInfoBO bo);

    /**
     * 废弃安装工单的拒单记录
     */
    void initRejectionInfo(InitRejectionInfoBO initRejectionInfoBO);

    /**
     * 查询工单拒单次数map
     */
    Map<Long, Long> queryRejectionCountMap(Set<Long> workOrderIdSet);
}
